package m.jclecai.com.activity.follow;

import android.content.Intent;
import android.widget.FrameLayout;

import butterknife.BindView;
import butterknife.OnClick;
import m.jclecai.com.R;
import m.jclecai.com.activity.WebHelperActivity;
import m.jclecai.com.base.BaseActivity;
import m.jclecai.com.fragment.refreshableList.HotPeopleListFragment;

/**
 * Created by Dinosa on 2017/11/23.
 */

public class HotPeopleListActivity extends BaseActivity {

    @BindView(R.id.fl_container)
    FrameLayout mFlContainer;

    @Override
    protected int getContentView() {
        return R.layout.activity_hot_people_list;
    }

    @Override
    protected void initView() {
        super.initView();
        setTitle("红人列表");
        leftOptionText("");
        rightOptionText("说明");
    }

    @Override
    protected void initData() {
        super.initData();

        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.fl_container,new HotPeopleListFragment())
                .commitAllowingStateLoss();
    }

    @OnClick(R.id.tv_right_option)
    public void right(){
        Intent intent = new Intent(HotPeopleListActivity.this, WebHelperActivity.class);
        intent.putExtra("title", "红人榜说明");
        intent.putExtra("code", "RedManList");
        intent.putExtra("isLocal", true);
        startActivity(intent);
    }

    @Override
    protected void rightClick() {
        super.rightClick();
    }
}
